import { createApp } from "vue";
import "./style.less";
import App from "./App.vue";
import router from "./router";

// 引入Vant组件库
import { 
  NavBar, 
  Loading,
  Toast,
  Dialog,
  ActionSheet
} from 'vant';
import 'vant/lib/index.css'; // 引入Vant样式

const app = createApp(App);
app.use(router);

// 注册Vant组件
app.use(NavBar);
app.use(Loading);
app.use(Toast);
app.use(Dialog);
app.use(ActionSheet);

app.mount("#app");
